<template>
  <div id="app">
    <transition name="slide-left">
        <router-view></router-view>
    </transition>
    <com-loading v-show="getLoading"></com-loading>
  </div>
</template>

<script>
require('./assets/weui.css')
import comLoading from './components/loading'

export default {
  name: 'app',
  data () {
    return {
    }
  },
  computed: {
    getLoading(){
      return this.$store.getters.getLoading
    }
  },
  components: {
    comLoading
  },
  mounted(){
    if (!this.$router.name) {
      this.$router.push({
        path: '/home'
      })
    }
  }
}
</script>

<style lang="sass">
* {
  padding: 0;
  margin: 0;
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
}
#app {
  background: #f4f4f4
}

</style>
